import { useI18n } from 'vue-i18n'
export function useMock() {
  const { t } = useI18n()
  const search = [
    {
      field: 'title',
      label: t('keys.notice_title'),
      component: 'Input'
    },
    {
      field: 'publishType',
      label: t('keys.publishType'),
      component: 'Select',
      lovCode: 'ZCMS.PUBLISH_TYPE'
    },
    {
      field: 'publishTime',
      label: t('keys.notice_publish_time'),
      component: 'DateTimeRange'
    }
  ]
  const searchClumon = [
    {
      label: t('keys.notice_type'),
      width: '',
      field: 'typeCn',
      fixed: 'left',
      showOverflowTooltip: true
    },
    {
      label: t('keys.notice_title'),
      width: '200px',
      field: 'title',
      fixed: 'left',
      showOverflowTooltip: true
    },
    {
      label: t('keys.notice') + t('keys.status'),
      width: '',
      field: 'readFlag',
      showOverflowTooltip: true
    },
    {
      label: t('keys.publishType'),
      width: '',
      field: 'publishTypeCn',
      showOverflowTooltip: true
    },
    {
      label: t('keys.istop_time'),
      width: '',
      field: 'istopTime',
      showOverflowTooltip: true
    },
    {
      label: t('keys.createdTime'),
      width: '',
      field: 'createdTime',
      showOverflowTooltip: true
    },
    {
      label: t('keys.publish_time'),
      width: '',
      field: 'publishTime',
      showOverflowTooltip: true
    },
    {
      label: t('keys.notice_Publisher'),
      width: '',
      field: 'tenantName',
      showOverflowTooltip: true
    }
  ]
  return {
    search,
    searchClumon
  }
}
